package com.hison.tandainbao.mapper;

import com.hison.tandainbao.entiy.pojo.domain.TbItems;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hison.tandainbao.entiy.pojo.dto.ItemsAll;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author hison
* @description 针对表【tb_items】的数据库操作Mapper
* @createDate 2024-03-30 16:46:11
* @Entity com.hison.tandainbao.entiy.pojo.domain.TbItems
*/
public interface TbItemsMapper extends BaseMapper<TbItems> {

    List<ItemsAll> getAll();

    TbItems getItemByLikeName(@Param("name") String name);

    int updateItem(@Param("itemId") Integer itemId, @Param("userId") Long userId,@Param("type") Integer type);

    int  deleteByItemId(@Param("itemId") Integer itemId);

    int  updateItemStatus(@Param("itemId") Integer itemId, @Param("status") Integer status);
}




